package com.wanmei.service;

import com.wanmei.mapper.AddressMapper;
import com.wanmei.pojo.Address;
import com.wanmei.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressService {
    @Autowired
    private AddressMapper addressMapper;



    public List<Address> selectAddressByUid(Integer uid) {
        return addressMapper.selectAddressByUid(uid);
    }


    public List<User> selectAddressByName(String likevalue) {
        return addressMapper.selectAddressByName(likevalue);
    }


}
